package com.caiheng.api.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "product_type")
public class ProductType implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String typeName;

    private Integer parentId;

    private Integer state;

    private String imgUrl;

    private Integer sort;

    private String linkUrl;

    private Integer isShow;

    /**
     * 商家id
     */
    private Integer merId;

    /**
     * 是否是平台的商品类型 0 - 平台商品类型
     */
    private Integer isPlatform;

    /**
     *
     */
    private Integer estateId;


    @TableField(exist = false)
    private List<ProductType> childs;


    @TableField(exist = false)
    private List<Product> products;
}
